package com.itheima.health.service.impl;

import com.itheima.health.dao.RoleMapper;
import com.itheima.health.pojo.Role;
import com.itheima.health.service.RoleService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
@Slf4j
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override

    public List<Role> findAll() {
        List<Role> roleList = roleMapper.selectAll();
        return roleList;
    }
}
